<template>
	<view style="background: rgb(245, 245, 245);padding-top: 15rpx;">
		<view class="container">
			<view class="leftcell">
				<view class="bigbox" v-for="(item,index) in listdata">
					<view class="dot" :class="item.status == 2? 'dots': '' "></view>
					<!-- 外层盒子 -->
					<view class="minibox">
						<view class="text">{{item.record_name}}&nbsp;({{item.desc}})</view>
					</view>
				</view>
			</view>
		</view>
	</view>

</template>

<script>
	var common = require('../../../utils/common.js');
	var app = getApp();
	var _this;
	const getwaterReportdetailds = () => {
		common.post('HouseApi&a=task_qrcode_list', {
			village_id: _this.village_id,
			cate_id: _this.cate_id,
		}, data => {
			console.log("nnnnnnn", data)
			_this.listdata = data.qrcode_list;
		});
	}
	export default {
		data() {
			return {
				listdata: {},
				village_id: 0,
				pigcms_id: 0,
				fab_content: [],
				fab_pattern: {},
				actcolor: '',
				btn_style: '',
				cate_id:'',
			}
		},
		onPullDownRefresh() {
			getwaterReportdetailds();
		},
		onShow: function() {
			if (_this.first_load == false) {
				getwaterReportdetailds();
			}
		},
		onLoad: function(options) {
			_this = this;
			_this.cate_id = options.cate_id;
			common.setMainColor(_this, function(config) {
				_this.actcolor = app.globalData.config.config.mobile_head_color;
				_this.btn_style = 'background-color: ' + _this.actcolor + ';box-shadow:0px 30rpx 30rpx -30rpx ' + _this.actcolor +
					';';
				const res = uni.getStorageSync('village_key');
				if (res) {
					_this.village_id = res.village_id;
					_this.pigcms_id = res.pigcms_id;
					_this.village_name = res.village_name;
				};
				getwaterReportdetailds();
			});
		},
		methods: {

		},
		components: {

		},
	}
</script>

<style>
	page {
		background-color: #FFFFFF;
	}

	.container {
		margin: 0;
		padding: 0;
		display: flex;
		width: 100%;
		flex-direction: row;
		overflow: hidden;
		background: #FFFFFF;
	}

	.leftcell {
		width: 100%;
		margin-left: 50rpx;
		border-left: 4rpx solid #f8fafc;
	}

	.bigbox {
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		width: 100%;
		margin-top: 30rpx;
	}

	.dot {
		width: 10rpx;
		height: 10rpx;
		border: 10rpx solid #12C592;
		border-radius: 15rpx;
		margin-left: -18rpx;
		flex-shrink: 0;
		margin-top: 17rpx;
	}

	.dots {
		width: 10rpx;
		height: 10rpx;
		border: 10rpx solid #F00101;
		border-radius: 15rpx;
		margin-left: -18rpx;
		flex-shrink: 0;
		margin-top: 17rpx;
	}

	.minibox {
		display: flex;
		flex-direction: column;
		width: 100%;
		height: 100%;
		justify-content: space-between;
	}

	.topbox {
		width: 100%;
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		border-radius: 20rpx 20rpx 0rpx 0rpx;
		background: rgb(248, 250, 252);
	}

	.text {
		font-size: 36rpx;
		font-weight: normal;
		font-stretch: normal;
		line-height: 60rpx;
		letter-spacing: 0rpx;
		color: #333333;
		margin-left: 20rpx;
	}

	.time {
		font-size: 24rpx;
		font-weight: normal;
		font-stretch: normal;
		line-height: 100rpx;
		letter-spacing: 0rpx;
		color: #aeaeae;
		margin-right: 20rpx;
	}
</style>
